package com.briup;

import com.briup.Client.Client;
import com.briup.Client.gather.Gather;
import com.briup.Config.Impl.SmartConfigImpl;
import com.briup.entity.Environment;

import java.util.Collection;

public class ClientMain {
    //启动客户端
    public static void main(String[] args) {
        //创建配置模块对象
        SmartConfigImpl config = SmartConfigImpl.getInstance();
        //采集数据
        //获取采集模块对象
        Gather gather = config.getGather();
        Collection<Environment> environments = gather.gather();

        //发送数据给服务器
        Client client = config.getClient();
        client.send(environments);

    }
}
